package com.ios.dto;

import com.ios.entity.Attention;
import com.ios.enums.AttentionStateEnum;
/**
*@Author:WenTao
*@Description:关注状态返回类型
*@Date:9:14 2018/7/19
*/
public class AttentionExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*关注关系*/
    private Attention attention;

    /*操作失败时的构造器*/
    public AttentionExecution(AttentionStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public AttentionExecution(AttentionStateEnum stateEnum,Attention attention){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.attention = attention;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public Attention getAttention() {
        return attention;
    }

    public void setAttention(Attention attention) {
        this.attention = attention;
    }
}
